{"version":3,"sources":["script.js"],"names":["BX","namespace","Main","selectorManager","getById","id","this","controls","Selector","initialized","blockInit","inputId","input","tagId","tag","options","callback","items","entities","mainPopupWindow","entitiesSet","auxObject","create","params","util","hashCode","Math","random","toString","self","init","getId","proxyCallback","data","prototype","ReferenceError","err","containerNode","containerId","bindNode","bindId","openDialogWhenInit","parameters","name","pathToAjax","searchInput","bindMainPopup","node","offsetTop","offsetLeft","bindSearchPopup","userSearchArea","getOption","lazyLoad","useClientDatabase","sendAjaxSearch","showSearchInput","allowAddUser","allowAddCrmContact","allowAddSocNetGroup","allowSearchEmailUsers","allowSearchCrmEmailUsers","allowSearchNetworkUsers","enableDepartments","departmentSelectDisable","enableSonetgroups","enableProjects","isCrmFeed","select","delegate","item","type","search","bUndeleted","state","unSelect","openDialog","closeDialog","openSearch","closeSearch","openEmailAdd","closeEmailAdd","allowSonetGroupsAjaxSearchFeatures","key","i","length","itemsLast","itemsSelected","selected","SocNetLogDestination","initDialog","bind","e","realParams","bByFocusEvent","PreventDefault","BXfpSetLinkName","formName","tagInputName","tagLink1","message","tagLink2","proxy","BXfpSearchBefore","inputName","inputNode","BXfpSearch","setAttribute","hidden","ii","hasOwnProperty","apply","show","openDialogParams","eventParams","onCustomEvent","window","setTimeout","isShown","getData","eventOpen","addCustomEvent","findChild","tagName","attr","obElementBindMainPopup","obElementBindSearchPopup","getAttribute","obItemsSelected","value","popupWindow","ajax","url","method","dataType","sessid","bitrix_sessid","site","action","onsuccess","SUCCESS","addData","DATA","onfailure","__mergeData","target","source","obItems","ITEMS","GROUPS","USERS","EMAILS","CRMEMAILS","SONETGROUPS","DEPARTMENT","buildDepartmentRelation","obItemsLast","ITEMS_LAST","CRM","obCrmFeed","SONETGROUPS_LIMITED","obAllowSonetGroupsAjaxSearch","obDestSort","DEST_SORT","optionId"],"mappings":"CAAC,WACA,aAEAA,GAAGC,UAAU,WAEbD,GAAGE,KAAKC,iBACPC,QAAS,SAAUC,GAElB,UAAWC,KAAKC,SAAS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